package com.gt.admin.controller;

import com.gt.common.core.controller.BaseController;
import com.gt.common.core.page.TableDataInfo;
import com.gt.admin.domain.CheckAppointment;
import com.gt.admin.domain.vo.CheckAppointmentVO;
import com.gt.admin.service.ICheckAppointmentService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@Api(tags = "sc-检查预约")
@RestController
@RequestMapping("/check-appointment")
public class CheckAppointmentController extends BaseController {
    @Autowired
    private ICheckAppointmentService checkAppointmentService;

    /**
     * 查询检查预约
     */
    @ApiOperation("查询检查预约")
    @GetMapping
    public TableDataInfo list(CheckAppointmentVO checkAppointmentVO){
        startPage();
        List<CheckAppointment> list = checkAppointmentService.list(checkAppointmentVO);
        return getDataTable(list);
    }
}
